#ifndef _ELEMTYPE_H_
#define _ELEMTYPE_H_

#include <iostream>
using namespace std;

class ElemType {
public:
    ElemType() {}
    ElemType(int n)
            : a(n) {}
    ~ElemType() {}
    friend istream &operator>>(istream &myin, ElemType &e) {
        cin >> e.a;
        return myin;
    }

    friend ostream &operator<<(ostream &myout, const ElemType &e) {
        cout << e.a;
        return myout;
    }

private:
    int a; //假设只有一个整型数据成员
};

#endif